#include <iostream>
#include <algorithm>

int gcd(int a, int b) { return !b ? a : gcd(b, a % b); }

int main()
{
	int a, b;
	std::cin >> a >> b;
	a = 6 - std::max(a, b) + 1; b = 6;
	int t = gcd(a, b);
	a /= t; b /= t;
	std::cout << a << "/" << b << "\n";
}

